/*
 * @Author: 肖思汗 
 * @Date: 2025-06-24 23:42:00 
 * @Last Modified by: 肖思汗
 * @Last Modified time: 2025-06-27 15:49:26
 */

import Api from "src/api/Api";

// 接受邀请接口
class AcceptInvitationApi extends Api {

    constructor() {
        super();
    }

    //获取分销配置
    getDistributeConfig() {
        return this._get("/myWallet/queryDistributeConfig");
    }

    //绑定上级关系
    linkParentUserCode(userCode: string) {
        return this._post("/myPromotion/linkParentUserCode", { userCode });
    }

}

const acceptInvitationApi = new AcceptInvitationApi();

export default acceptInvitationApi;










